package com.tom.userfallback;

import com.tom.domain.User;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
@Component
public class GetUserfallback {
    public static User getUserfallback(@PathVariable("id") Long id,Throwable throwable){
        return new User("熔断降级",-1);
    }
}
